<?php 
	function get_user_default($user_id)
	{
		$user_bonus = get_user_bonus(); 
		
		$sql = "SELECT pay_points,user_money,credit_line,last_login,is_validated FROM ".
				$GLOBALS['ecs']->table('users').
				" WHERE user_id = '$user_id'";
		$row = $GLOBALS['db']->getRow($sql);
		$info = array();
		
		$info['username'] = stripslashes($_SESSION['user_name']);
		$info['shop_name'] = $GLOBALS['_CFG']['shop_name'];
		$info['integeral'] = $row['pay_points'] . $GLOBALS['_CFG']['integral_name'];
		
		$last_time = !isset($_SESSION['last_time']) 
					 ? $row['last_login'] 
					 : $_SESSION['last_time'];
		if ($last_time == 0)
		{
			$_SESSION['last_time'] = $last_time = gmtime();
		}
		
		$info['last_time'] = local_date($GLOBALS['_CFG']['time_format'],$last_time);
		
		$sql = "SELECT COUNT(*) FROM ".$GLOBALS['ecs']->table('order_info');
						
	}

?>